package business;

import java.util.List;

import vo.UserTopic;

public interface UserTopicService {

	List<UserTopic> getAllUserTopics();

	List<UserTopic> getNonSubUsers(long topicId);

	boolean isExist(long userId, long topicId);

	List<UserTopic> getUserTopicsByUserId(long userId);

	int getCountByUserId(long userId);

	List<UserTopic> getUserTopicsByTopicId(long topicId);

	// 某主题下，订阅的普通用户
	List<UserTopic> getByTopicIdUserRole(long topicId);

	void addUserTopic(String name);

	void addUserTopic(UserTopic userTopic);

	UserTopic getById(long id);

	UserTopic getByTopicIdUserId(long topic,long userId);

	void update(long id);

	void delete(long id);

}
